package com.iot08.push.utils;

import com.alibaba.fastjson.JSONObject;
import com.iot08.common.utils.StringUtil;
import lombok.Data;

/**
 * @version 1.0
 * @Description:
 * @time: 2020/9/28 14:44
 * @author: Rock
 */
@Data
public class PushSendVO {

//    private String uuid;

    private String openid;

    private String alert;

    private Boolean contentAvailable = false;

    private Boolean mutableContent = false;

    private String type;

    private Integer video;

    private Integer unbind;

    private Integer unfriend;

    private String sound;

    private Integer badge;

    // 0=默认 1=上传照片；2=邀请视频通话；3=微聊
    private Integer mobType = 0;

    private JSONObject data;

    private JSONObject androidData;

    private String videoId;

    private String video_identify;

    /**
     * 判断是否为空
     *
     * @time: 2020/9/29 9:23
     * @author: Rock
     * @version 1.0
     */
    public boolean isEmpty() {
        if (StringUtil.isBlank(openid) && StringUtil.isBlank(alert) && StringUtil.isBlank(contentAvailable)
                && StringUtil.isBlank(mutableContent)
                && StringUtil.isBlank(type) && StringUtil.isBlank(video) && StringUtil.isBlank(unbind)
                && StringUtil.isBlank(unfriend) && StringUtil.isBlank(sound) && StringUtil.isBlank(badge)) {
            return true;
        }
        return false;
    }


}
